package com.tt.dp.decorator.condiment;

import com.tt.dp.decorator.beverage.Beverage;

public class Soy extends CondimentDecorator{

    private Beverage beverage;

    public Soy(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return this.beverage.getDescription() + " , Soy";
    }

    @Override
    public double cost() {
        return 0.3 + this.beverage.cost();
    }
}
